BEA Logo BEA WebLogic Server Release 6.0

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

   Programming WebLogic HTTP Servlets:   Previous Topic   |   Next Topic   |   Contents   |  Index

 

Programming WebLogic HTTP Servlets

 

Contents

 

1. Overview

What Is a Servlet?

What You Can Do with Servlets

Overview of Servlet Development

Servlets and J2EE

HTTP Servlet API Reference

2. Introduction to Programming

Writing a Basic HTTP Servlet

Advanced Features

Complete HelloWorldServlet Example

3. Programming Tasks

Initializing a Servlet

Initializing a Servlet when WebLogic Server Starts

Overriding the init() Method

Providing an HTTP Response

Retrieving Client Input

Other Methods for Using the HTTP Request

Example: Retrieving Input by Using Query Parameters

Using Session Tracking from a Servlet

A History of Session Tracking

Tracking a Session with an HttpSession Object

Lifetime of a Session

How Session Tracking Works

Detecting the Start of a Session

Setting and Getting Session Name/Value Attributes

Logging Out and Ending a Session

Configuring Session Tracking

Using URL Rewriting

URL Rewriting and Wireless Access Protocol (WAP)

Making Sessions Persistent

Scenarios to Avoid When Using Sessions

Use Serializable Attribute Values

Configuring Session Persistence

Using Cookies in a Servlet

Setting Cookies in an HTTP servlet

Retrieving Cookies in an HTTP Servlet

Using Cookies that Are Transmitted by Both HTTP and HTTPS

Application Security and Cookies

Using WebLogic Services from an HTTP Servlet

Accessing Databases

Connecting to a Database Using a JDBC Connection Pool

Using a Connection Pool in a Servlet

Connecting to a Database Using a DataSource Object

Using a DataSource in a Servlet

Connecting Directly to a Database Using a JDBC Driver

Threading Issues in HTTP Servlets

SingleThreadModel

Shared Resources

Dispatching Requests to Another Resource

Forwarding a Request

Including a Request

4. Administration and Configuration

Overview

Using Deployment Descriptors to Configure and Deploy Servlets

web.xml (Web Application Deployment Descriptor)

weblogic.xml (Weblogic-Specific Deployment Descriptor)

WebLogic Server Administration Console

Directory Structure

URL

Security

Authentication

Authorization (Security Constraints)

Servlet Development Tips

Clustering Servlets

 

Back to Top